package com.my.game;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * Created by yijy on 2018/3/21.
 */
public class Player {
    private int blood;
    private String name;
    private String id;
    private BlockingQueue blockingQueue=null;

    public Player(int blood, String name, String id) {
        this.blood = blood;
        this.name = name;
        this.id = id;
        blockingQueue = new LinkedBlockingQueue();
    }

    @Override
    public String toString() {
        return "Player{" +
                "blood=" + blood +
                ", name='" + name + '\'' +
                ", id='" + id + '\'' +
                '}';
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public BlockingQueue getBlockingQueue() {
        return blockingQueue;
    }

}
